package com.applcn.order.constant;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * com.applcn.order.constant
 * Description:
 *
 * @author: 大妖怪
 * @date: 2020-01-20 00:09
 */
public enum PayTypeEnum implements IEnum<Integer> {

    /**
     * 余额
     */
    BALANCE(0, "余额"),

    /**
     * 微信
     */
    WECHAT(1, "微信"),

    /**
     * 支付宝
     */
    ALIPAY(2, "支付宝");

    private int code;
    private String desc;

    PayTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public Integer getValue() {
        return this.getCode();
    }
}
